package org.frame.auth.feign.fallback;

import java.util.Set;

import org.frame.auth.feign.RemoteUserService;
import org.frame.common.core.entity.User;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

/**
 * 出现接口异常时的回调方法
 * @author ty-intasect03
 *
 */
@Slf4j
@Component
public class RemoteUserServiceCallBack implements RemoteUserService{
 
    @Override
    public User userInfo(String name) {
    	log.error("根据用户名:{}获取用户信息失败", name);
        return null;
    }

	@Override
	public Set<String> userPerms(Long userId) {
		log.error("根据用户id:{}获取权限信息失败", userId);
		return null;
	}
 
}
